//
//  XIObject.h
//  XI Engine
//
//  Created by Balazs Faludi on 30.05.09.
//  Copyright 2009 Balazs Faludi. All rights reserved.
//

#import <Foundation/Foundation.h>


@class XILayer;

@interface XIObject : NSObject
{
	XILayer *layer;
	BOOL hidden;
	NSInteger tag;
}

@property (nonatomic, retain) XILayer *layer;
@property (nonatomic) BOOL hidden;
@property (nonatomic) NSInteger tag;

- (id)initFromDictionary:(NSDictionary *)objectDict;
- (void)loadFromDictionary:(NSDictionary *)objectDict;
- (NSDictionary *)saveToDictionary;
- (NSMutableDictionary *)saveStateToDictionary;
- (void)willBeAddedToLayer:(XILayer *)newLayer;
- (void)wasAddedToLayer:(XILayer *)newLayer;
#if TARGET_OS_IPHONE
- (void)update;
#endif
- (void)draw;
- (void)drawForSceneBuilder;

@end

/*@protocol PhysicalObjectDelegate
@required
- (cpBody *)body;
- (cpShape *)shape;
@end*/

